package com.vip.iot.entity;

import lombok.Data;

/**
 * 告警消息返回
 *
 * @author flj
 * @date 2019/2/28
 **/
@Data
public class IotAlarmCustom {
    public IotAlarmCustom(String msgType, String id, String state, Object data) {
        this.companyCode = "h";
        this.msgType = msgType;
        this.id = id;
        this.state = state;
        this.data = data;
    }

    public IotAlarmCustom(String msgType, String iotId, String gatewayMac, String state, Object data) {
        this.companyCode = "h";
        this.msgType = msgType;
        this.state = state;
        this.data = data;
    }
    /***/
    private String msgId;

    /**
     * 公司编码
     */
    private String companyCode;

    /**
     * msgType     消息类型 数据来源公司首字母小写+信息类别 如：yxlocation : 扬翔- 定位
     */
    private String msgType;

    /**
     * 设备id
     * iotId+gateWayMac+feederId
     */
    private String id;

    /**
     * 数据
     */
    private Object data;


    /**
     * 状态
     */
    private String state;


    /**
     * 状态描述
     */
    private String stateDes;
}
